package com.cookor.poi.modules.sys.dao;

import com.cookor.poi.common.persistence.annotation.MyBatisDao;
import com.cookor.poi.modules.sys.entity.SysRoleMenu;
import com.cookor.poi.modules.sys.entity.SysRoleMenuExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@MyBatisDao
public interface SysRoleMenuDao {
    long countByExample(SysRoleMenuExample example);

    int deleteByExample(SysRoleMenuExample example);

    int deleteByPrimaryKey(@Param("roleId") String roleId, @Param("menuId") String menuId);

    int insert(SysRoleMenu record);

    int insertSelective(SysRoleMenu record);

    List<SysRoleMenu> selectByExample(SysRoleMenuExample example);

    int updateByExampleSelective(@Param("record") SysRoleMenu record, @Param("example") SysRoleMenuExample example);

    int updateByExample(@Param("record") SysRoleMenu record, @Param("example") SysRoleMenuExample example);
}